class GetPeerOrdersByTimeTable {
  String id;
  String orderId;
  String depAre;
  String depLongitude;
  String depLatitude;
  String destLongitude;
  String destLatitude;
  String destArea;
  String pickUpTime;
  String departureTime;
  String departureDate;
  String unitPrice;
  String totalPrice;
  int peopleNumber;
  String state;
  String payState;
  String passengerId;
  String week;
  String lastNum;
  String headimgurl;

  GetPeerOrdersByTimeTable(
      {this.id,
      this.orderId,
      this.depAre,
      this.depLongitude,
      this.depLatitude,
      this.destLongitude,
      this.destLatitude,
      this.destArea,
      this.pickUpTime,
      this.departureTime,
      this.departureDate,
      this.unitPrice,
      this.totalPrice,
      this.peopleNumber,
      this.state,
      this.payState,
      this.passengerId,
      this.week,
      this.lastNum,
      this.headimgurl});

  GetPeerOrdersByTimeTable.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    orderId = json['order_id'];
    depAre = json['dep_are'];
    depLongitude = json['dep_longitude'];
    depLatitude = json['dep_latitude'];
    destLongitude = json['dest_longitude'];
    destLatitude = json['dest_latitude'];
    destArea = json['dest_area'];
    pickUpTime = json['pick_up_time'];
    departureTime = json['departure_time'];
    departureDate = json['departure_date'];
    unitPrice = json['unit_price'];
    totalPrice = json['total_price'];
    peopleNumber = json['people_number'];
    state = json['state'];
    payState = json['pay_state'];
    passengerId = json['passenger_id'];
    week = json['week'];
    lastNum = json['last_num'];
    headimgurl = json['headimgurl'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['order_id'] = this.orderId;
    data['dep_are'] = this.depAre;
    data['dep_longitude'] = this.depLongitude;
    data['dep_latitude'] = this.depLatitude;
    data['dest_longitude'] = this.destLongitude;
    data['dest_latitude'] = this.destLatitude;
    data['dest_area'] = this.destArea;
    data['pick_up_time'] = this.pickUpTime;
    data['departure_time'] = this.departureTime;
    data['departure_date'] = this.departureDate;
    data['unit_price'] = this.unitPrice;
    data['total_price'] = this.totalPrice;
    data['people_number'] = this.peopleNumber;
    data['state'] = this.state;
    data['pay_state'] = this.payState;
    data['passenger_id'] = this.passengerId;
    data['week'] = this.week;
    data['last_num'] = this.lastNum;
    data['headimgurl'] = this.headimgurl;
    return data;
  }
}
